<template>
  <div>
    <div class="box">
      <div class="left">
        <van-uploader :after-read="afterRead" />
      </div>
      <div class="right">
        <b>立即登录</b>
        <p>积分 ：0</p>
      </div>
    </div>
    <div class="box_xx">
      <van-notice-bar left-icon="volume-o" text="在代码阅读过程中人们说脏话的频率是衡量代码质量的唯一标准。" />
    </div>
    <div class="box_dd">
      <van-nav-bar>
        <template #left>
          <van-icon name="notes-o" size="25px" />
          <solt>我的订单</solt>
        </template>
        <template #right>
          <van-icon name="arrow" />
        </template>
      </van-nav-bar>
    </div>
    <div class="con1">
      <van-grid>
        <van-grid-item icon="paid" text="待付款" />
        <van-grid-item icon="send-gift-o" text="待发货" />
        <van-grid-item icon="logistics" text="待收货" />
        <van-grid-item icon="comment-o" text="待评价" />
      </van-grid>
    </div>
    <div class="con2">
        <van-grid :column-num="3">
        <van-grid-item icon="balance-o" text="我的余额" />
        <van-grid-item icon="edit" text="我的砍价" />
        <van-grid-item icon="coupon-o" text="我的礼券" />
        <van-grid-item icon="star-o" text="我的收藏" />
        <van-grid-item icon="location-o" text="我的地址" />
        <van-grid-item icon="service-o" text="联系客服" />
</van-grid>
    </div>
  </div>
</template>
<script>
export default {
  data() {
    return {};
  },
  methods: {
    afterRead(file) {
      // 此时可以自行将文件上传至服务器
      console.log(file);
    },
  },
};
</script>
<style scoped>
.box {
  width: 100%;
  height: 25vh;
  background: burlywood;
  display: flex;
  align-items: center;
}
.left {
  width: 25%;
  height: 15vh;
  /* border: 1px solid #000; */
  margin-left: 30px;
}
.right {
  width: 28%;
  height: 15vh;
  /* border: 1px solid #000; */
  margin-left: 20px;
  text-align: center;
}
b {
  color: white;
  font-size: 20px;
}
p {
  background-color: rgb(128, 94, 0);
  height: 25px;
  line-height: 25px;
  color: white;
}
</style>